package com.xuelang.pipeline.artifact.app.nexus3v1.request;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Map;

/**
 * @author xiwen.zxg
 * @since 2024/7/15
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class WebhookAuditRequest {

    private String nodeId;
    private String initiator;
    private AuditInfo audit;

    @Data
    @AllArgsConstructor
    @NoArgsConstructor
    @Builder
    public static class AuditInfo {
        private String domain;
        private String type;
        private String context;
        private Map<String, Object> attributes;
    }
}
